<?php

namespace app\common\model;

class ShopMemberExpire extends BaseModel
{
    protected function getResidueNumAttr($val,$data){
        $num = $data['total_num'] - $data['use_num'];
        return $num;
    }
    
    protected function getExpireCardAttr($val,$data){
        return date('Y-m-d',$data['expire_time']);
    }
}
